package CTRLayer;

import java.util.ArrayList;
import DBLayer.DBTrained;
import ModelLayer.Trained;

public class TrainedCTR
{
	public ArrayList<Trained> findAllTrained()
    {
		DBTrained dbTrained = new DBTrained();
        ArrayList<Trained> allTrained = new ArrayList<Trained>();
        allTrained = dbTrained.getAllTrained(false);
        return allTrained;
    }
	
	public ArrayList<Trained> findAllTrainedByTrainingDayID(int TrainingDayID)
    {
		DBTrained dbTrained = new DBTrained();
        ArrayList<Trained> allTrainedByTDID = new ArrayList<Trained>();
        allTrainedByTDID = dbTrained.getAllTrainedByTrainingDayID(TrainingDayID, false);
        return allTrainedByTDID;
    }
	
	public Trained findTrainedID(int TrainedID)
	{
		DBTrained dbTrained = new DBTrained();
		return dbTrained.searchTrainedID(TrainedID, true);
	}
}